Added form to upload events and return them in JSON