change route and change variables