hooking up buttons and enabling search queries