gave masthead fixed positioning; refactored css; added css class if js detects if sub-menu is going off page