Implemented back and forward buttons.