added a precompiled template function

added a precompiled template function for rendering the bootstrap modal
window.