update UI added left and right swipe to mainActivity