Fixing bug in edit functionality so child goals can be edited without losing their hierarchical position