Added 'dev mode' to enable toggling of template