fixed ajax and buttons