styling for the homePage and a small function to transition