fixed some edit features for flows and terminals