Modified layout, fixed some redundancy

Fixed the layout resizing when text overfills box, made settings windows
appear on top and restricted minimization, made windows layout