Revised count tabs ajax call sequence