Main frame visibility fix

Make frame visible *after* initialising.