Reset attributes on cancel edit