first try for editing
more work on editing.
got basic editing functionality to work