added onclicklistner to chart