added code from patPending to pat, so pat.jade gets notpicked array aswell as picked