Ensure that the mode is refreshed when anything of the related things are changed