add sidebar and correct search