added ajax communication for workflow email rules