Implemented correct method of loading .ui files.