using pid from viewer framework reather than url param
Merge pull request #1 from willtp87/7.x

using pid from viewer framework reather than url param