Implemented Resize-Event for GUI