Update and rename ajax for switch tabs to jquery selector