- added history functions with backbutton
- some minor changes