enable dependency injection also outside the constructor
use dependency injection with the functions
changed controllers to handling classes directly