Add dialog for options
Store a few more fields for each issue

Also renamed some vars add some logging