Refactor UI for dashboard and footer