Removed prepareData method and created prepareDataToSave and prepareDataFromSelection