fixed bugs on the home page