Working version (with old dynamic edit_modal, will be changed)