Refactored Document GUI