fix viewdidappear messing with modal views