added code to allow users to search the pictures model and the categories model