Commit working TOD dialog on windows

The dialog works on windows. There is a bug where the dialog does not
close.
Working tod menu system.