honda foreman reverse problems

my engine died so i tore it all apart and its back together now and runs great but the reverse was being funky it goes into reverse but jumps back to neutral sometimes and if it stays in reverse and i give it some gas it will drive but makes grinding and other sounds you don’t want to hear and then it will jump back to neutral! ps i did touch the trans abit, but everything worked great until i pulled something in reverse any suggestions one what this could be? and it is electric shift