Finally finished adding the selected sites code