* implemented the undo functionality
* * each action has a undoCommand property which has to be set and the action handler has an undo() method
* * when long press the action is being "undone"