Modified mainactivity to test