Refactoring activities view