updated for thumbnail cclick filtering