Added the onclick event.