add interface to allow user to upload figures