added selector for assigning subgoals when a goal is created