Add isIframed view helper + JS to automatically switch iframe mode on/off