search attached to frontend and fixed handling of query string to support empty search