added next/previous buttons and arrow keys