refactoring activity views.