Add swipe to go forward/backward functions