refactor next_of_kins_controller