Modified onNewIntent in MainActivity