next and previous button functionality (no buttons yet)