[#1477] port settings modals to jade, implemented restore