Refactored application layout, edit registration, and cleaned up controller