extended layouting to work for resizing/closing/componentCreation, fixed infinite loop caused by wrong arrow positioning, minor code style formatting