added editing capabilities and button