add edit action funtion