add next and previous buttons