add URL patterns and parameters
move @params to the right spot