Hey, where did you put that custom nametable? Also perhaps you gave the nametable a different name, than it was hardcoded :)
Switching banks is simple, load bank number to a register y and call subroutine bankswitch_y.
Have you posted anything on Github? Since questions like this would be more fitting there.