core-4161 window header shadow
refactor code