updated sidebar and footer behavior