minor bugfixes in displaying activity