minor changes to router class; fixed incorrect url building