Added some functionality to the new elements in dialog_learn_period