Add function to home page