fix of ajax button disabling bug.