managed to hide previous button