Refactor contacts and phones controller with strong params for security