added buttons prev and next