fixing sidebar and active check