Create new HomePage code

I made major changes to the homepage to shorten the code ive changed the layout of the page to a better manageable cardlayout