removed ui  namespace, inject to constructor