combine edit and create modals DRY style