adds next/previous buttons to show page