updates to mainactivity for layout