Fix ugly hack for changing the header's class name on route transition