Fix the button logic on home page.