Fix back and forward buttons