fixed bug in "back to exhibit" link

made link conditional on whether http_referer is set