Added implementation of some methods

Implemented some listeners and methods for UNDO-Events and layout-stuff