fixed next and previous buttons