use controller and repo