bug fixes on add event dialog