Simplify: use currentURI.spec to get tab URI
Call setupUIActions() after delay for better startup performance
Simplify getTypeByLocalName()