added update functionality to html page