added edit stuff.