Seperated logic from UI for displaying the coverage report