cash working
work on memory update + refactoring
buttons state