coodersville it remained until 1864 , when the name was changed to montgomery , in honor of ellis montgomery , a local boy who had fallen at gettysburg , where , some say , the 20th maine preserved the union all by itself .