Removed old mainactivity code.