Template working on main window.