fixed ajax problem and bug in updating changes in slidelayout