search now works properly, disables buttons