Fix imports and enum lookups
Update imports
Update the StackItem definitions
Update the Stack definitions
Use an explicity null check since some Qt widgets test boolean False