making teh scope refresh when something is added or removed