added onChanged action to domain, so its possible to re-initialize it  when it was changed