added swipe gesture to change pages. (little bit dirty at the moment)