added allowed emails
merged ajax handlers