fix foreground view not hiding with no animations