updated previous button

fixes previous button