fixed the store/learn/edit/exit functionality