Fixed ajax so that it would call more than the first time