add accessor for getting onclick listener