changed onNewIntent to public