main mid edit modal