add logic to home page