reworked fixed header transition in main.js