added click code for control sprite