moved logger and translator to controller and context object