committing Mainactivity first time