changed logic on the controller of the active admin to the right model