changes to mainactivity