prev_button added with functionality
fixed out of array crash when using prev button
fixed out of array crash when using prev button