Add namespace and constants to controller