refactor interface
refactor menu class
move objects up to class
remove dublication
refactor history class