fixes issue with navigation pushing out of frame