finishing url logic.