added ajax post to set event and heat