move urlparams mixin into a function for less code and makes it easier to add/remove custom parameters.