controller edit