major refactor of the dashboard page