Made changes for smoother transitions and fixed the header to prevent strange ios magnetic scroll issue