More robust way to generate add event view.