refactor homepage and fix failing feature tests