added next and previous buttons