Update form and Controller

Hi All,I am new to yii framework and this is my first question to ask.I am in the learning stage in php.Please help me with my update form.Advanced thanks. I have a form to update any user information with a "Save" button.I update any information the version number increase.But the problem is when i do not update any information and click on "Save" button the version number increases.It should not increase.Can any one edit my code ,In controller where i have to change ,what i have to change.I am giving my Controller and form code files attached.





In Controller see the actionCreate and actionUpdate