move to complete function in ajax