add in the two guis button to save plotted object into pdf file