changed Window._context

when `if not hasattr(self, '_context')` is used the context property is't working as expected. it is called again and again, makes the startup very slow. with this fix the whole app runs from >10 secs in <1sec.