add function onclick at edit button