Add can go back/forward function