cleanup get_current_view