Change image CButtonColumn when something changed

Bismillah,

I’m pretty new in yii, and my english is not good enough.

I have button CButtonColumn in CGridView and it’s have an image, and i want to change it when the button clicked.




array(

	'header'=>'Alokasikan',

	'class'=>'CButtonColumn',

	'template' => '{upload}',

	'buttons'=>array(

        'upload' => array(

                         'label'=>'Alokasi', // text label of the buttons

			 'imageUrl'=>Yii::app()->request->baseUrl.'/images/pen.png',

								'url'=>function($data){

                            	 return Yii::app()->createUrl("alokasiKegiatan/create",     array("id"=>$data->id_kegiatan));

                            },

						),

                ),




Thanks before and after