removed unnecessary code: ajax