FSM and Dialogs

Some stuff. Dialogs for use with systools.