implemented button edit and delete