Removed unused usings
Make sure TemplateSelector is loaded even if a template throws errors
Made loading state visible, catch errors in template