Enable and disbale the next and previous buttons