utility: typeid function work as extended typeof operator
generic cache ware
refactor ui template loader with generic cache