added buttons for prev and next