working modal editor