implemented focus part of issue #200, other part implemented in last commit.
fixed ok/cancel behavior on create new project dialog
got rid of extra function def in ma_dataset.py