adding more bridge-editing functions
fix bugs