move injection to controller