Add type for namespaces for better UI (replacement of #302)

Closes #302 
ping @mrunalp @rjnagal