practice ajax and state