formatted next and previous buttons