Refactoring
More refactor, better alert
Fix history slider
Implement undo for edit mode
Implement different placement modes
Implement clear history