update search panel, minor

added icon for advanced link, consolidated code, added sj comments