cheking the tab and swipe view