fixed some issues with the back and forward buttons