show window only when everything is loaded