add tests
fix update of UI if activity is already finished