Added swipe function in Main, PageFragment class and layout