refactoring start activity