minor fix for restartActivity while switching view