Previous and next buttons now work!