added functionality to edit page for moving nodes around