refactoring reply box