implemented undo (in all tools now..)