Added support for change of primary keys in GUI.