main functionality of reducing url length and using id in registry object