changes for spinner and edit functionality