refactored HomepageView code to use querysets for operating on data, updated home template likewise, added url name change