added editing form functionality