set up project dialog earlier
refactor dialog showing/hiding code
Merge remote-tracking branch 'origin/master' into gh-pages