change route and btn style when action