header handler modified for responsive behaviour