added gui for figures