adding ajax capability