added figure support to the web app