updated dom to give output when searching