Remove the contents of the page, and populate it instead with a status card for different data tables (transactions, stock, cost)
Move the getStatusColor function into the setup script to solve the error