Refactored dashboard layout module