added condition to active_admin route