refactor setLib, and overload show method to save html and output iframe tags.