add a edit function on admin