remove duplication of onclickA