fixed ajax bug with button behavior in clients