fixed ajax button update problem