added time to add event form
added main element