controller now loads in window scope