working on history and enumDialog