Need work Main() into lower init funciton freezes as is when window opens