Refactored sheets controller