implementing sidebar library