tryed to make the next and previous buttons but don't work how they should