file saving and poor man's undo implemented
changed layout