adds parent_id to modal