add ajax support for create method