refactor route to append url