reimplemented homepage using new data model