Save instance state in MainActivity