how to repair

Hope this picture will show, but this is an area where water was coming in. I have a new gasket for the trim, but think there is more that should be done.

WP_20160729_11_42_57_Pro.jpg