How to use it for edit and new...