cleanup
thread hang detector: appnap detector
better
better
update and comment layout logic
more gui layouting fixes and comments
cleanup. extra window.layout() call not needed anymore
cleanup. buildControl doesnt need to do extra layout() call