refactore parents_controller