function edit form manager