added devise mail templates
wrote method to find next step for each contact