implemented add and remove memories at the UI level