Refactored expense controller