added OnClickListener and generator for Controller