Initial the tab and add ajax call