Fixed the xml to load the click event and added throws clause to throw error onClickEvent