Refactored dashboard parts.