Adding code for event click on each button at run time