added window dependency
fixed controller syntax