Dependency support now working

Controller only gets initialized after the dependencies are loaded