Adds search logic
Fully implements search feature as well as edit box feature