Changing into correct intent in MainActivity