js hiding and showing is complete except for moving to next route