Refactor accordion data manipulation and style them better