Fixed problems with windows positioning.
Fixed some other minor UI issues.