Redesign, fixed size issues

* Removed almost all the code from AppDelegate.
* Fixed issue with resizing. Now window is able to work on any window
size required.
* Elements adjust their sides