Modifications to mainactivity