working on next and prev button