Nesting ajax calls for the different sections