modified quit statement
added dom_id for each event
adding ajax join and quit event