save button opens dialog. saving saves empty json tho