fix cancel adding event. cleanup style