Fix bug on home page, sort out scroll function