added figure view but not function