Options dialog work

Setup directory tracking in global options