standalone window working again without templates