implemented html page loading and json