fixed bug with changing pages using tap instead of swipe