Fix email_settings object pull, change ajax onclick function