added cache management mechanism and usage. several enhancements to ui.