add ajax for sort action