changes to update_webpage procedure