Ajax email common interface created, Goals emails logic integrated there