move all_contacts method out of the application helper