some code cleanup
process creation has been moved from window to frame