added searchbox code
clean up