search by pk
refactor context processor