search items functionality