Updated the constructor of WindowElement and its implementation. Also made the resize-panel a bit bigger