searching works
started menu. restructured functions