disabled the functionality of the next and previous buttons at last and first steps