added swipe support
now storing the last page you visited