show window only when content is loaded