edge cases fixed smoother transitions on the main page