Trying to generate sideba relying on headers