Seperated out logic for summary page