sidebar works, now working on querying