added functionality to reorder list values when urls are removed