Added boilerplate window code