if controller hidden while a modal is presented, then rotated, shadows can get confused. fix that by removing on dissapear and replacing on appear