added the create event feature, small changes in server.js