layout the home page and change the type