using pid from viewer framework reather than url param