Reenable quickview, moved templateFunctions out of appInitComplete