added button to add name and event dynamically