fix resetting header on page change