Fixed the homepage view and changed the flip counter