added search filter for gallery