Fix NullPointerException

This was the exception:
java.lang.NullPointerException: println needs a message
Dismiss dialog after new activity is started

fixes #100 on github
Merge pull request #128 from steventlamb/bug/100_loading_instances_closes_too_soon

Bug/100 loading instances closes too soon