Added download handler to htmlrequesthandler