Updated next and previous buttons