fix for switching view_tabs