updated code and added an IFrame to display the webpage