Changed from code generation to Ui Loader approach for loading Qt Designer forms
This (hopefully) should fix the random crashes when loading forms.