Finished homepage logic