controller no longer wrapped in a self executing function.