creating controller in application context rather than global context
Merge pull request #19 from hasghari/controller-scope

controller scope