Move canvas to index.html instead of generating it.
Fix dialogmanager only working in debug mode