Swipe pages implemented partly.

First part of the swipe thingy implemented.