Dashboard logic (not fully functional)