add listeners to enable or disable create/update pathways only if their
is pathway opened