improved smart header behaviour & styling