implemented history box partially :o