add beginning functionality for edit. Show is functioning.