template cache for quicker modal opening