stack error fixed
created email model, checked histories and ajax_log, js cleanup
build