Fixed edit_modal issue, still need to factor out javascript to separate file