refactored ui logic to support drop in jadeContextBuilders