before add ajax