setting mainactivity's contentview correctly