Minor bug fix when turning phone to switch views