add next button and previous button