changed newtonsoft to web.helpers for json, added events