Finished homepage functionality