CHtml::ajaxLink Call pervious url

Hello everyone.

i have problem in CHtml::ajaxLink.

<?php if($job_status[0]->job_status=="Created" || $job_status[0]->job_status=="Quoted")

                        {


                            echo &quot;hii&quot;;


                           


                            echo CHtml::ajaxLink('&lt;i class=&#092;'hi hi-play fa-2x icon-vertical-padding&#092;'&gt;&lt;/i&gt;&lt;/br&gt;&lt;small&gt;Start&lt;/small&gt;',


                            Yii::app()-&gt;createUrl('/jobMaster/StartJob',array('id'=&gt;&#036;value-&gt;id)),


                             array(


                                 'dataType'=&gt;'html',


                                 'success'=&gt;'function(data){


                                     var obj=&#036;.parseJSON(data);


                                     if(obj.option==&quot;start&quot; &amp;&amp; obj.status==&quot;yes&quot;)


                                      {


                                             alert(&quot;Job Successfully Started.&quot;);


                                              //&#036;(&quot;#jobBox'.&#036;i.'&quot;).load(location.href+&quot; #jobBox'.&#036;i.'&gt;*&quot;,&quot;&quot;);


                                             &#036;(&quot;#AllJobs&quot;).load(location.href+&quot; #AllJobs&gt;*&quot;,&quot;&quot;);


                                             


                                      }}',


                             ),array('class'=&gt;'col-md-4 col-xs-4 text-center text-warning')


                                       


                             );


                        }if(&#036;job_status[0]-&gt;job_status==&quot;Started&quot;)


                        {


                            echo &quot;hello&quot;;


                            


                            echo CHtml::ajaxLink('&lt;i class=&#092;'hi hi-check fa-2x icon-vertical-padding&#092;'&gt;&lt;/i&gt;&lt;/br&gt;&lt;small&gt;Complete&lt;/small&gt;',


                                 Yii::app()-&gt;createUrl('/jobMaster/CompleteJob',array('id'=&gt;&#036;value-&gt;id)),


                                 array(


                                     'dataType'=&gt;'html',


                                     'success'=&gt;'function(data){


                                         var obj=&#036;.parseJSON(data);


                                     if(data.option==&quot;complete&quot; &amp;&amp; data.status==&quot;yes&quot;)


                                      {


                                            alert(&quot;Job Successfully Completed.&quot;);


                                            &#036;(&quot;#AllJobs&quot;).load(location.href+&quot; #AllJobs&gt;*&quot;,&quot;&quot;);


                                      }}',


                                 ),array('class'=&gt;'col-md-4 col-xs-4 text-center text-success')


                                 );


                        }


                        ?&gt;

In this code. when i click on start it works perfectly and call right action. and update the div with changed status and link. but when i click on complete link it also called "startjob link". it have to call "completejob" link.

But when i refresh whole page and click on complete it call right action "completejob".

What is Problem??? :(