Update ajax for switch tabs