How can I execute code after form load is finished and the form is visible.