refactored registeractivity, begin startupactivity