view and controller edit