magic definitions done
save button done
regenerate pdf -> preview pdf