Fixed problem with selecting header level
First take at adaptive design