making a list with dynamic url for ajax call