add event as parameter of the onclick function