should also dismiss keyboard when switching topviews.