cleaned up document settings