Updated mainactivity