added ability to edit attributes