update mainactivity