Main window templated