Canvas object clicked method