wired up the homepage with backend functionality