Refactoring code modal