add swipe on main page