refactored search method and moved to item model, replaced token with ENV variable