added ability to download html