Copy and clear actions implementations
Undo/redo now working
MainWindow code cleanup