add edit/save functionality