changes to update_webpage procedure
Merged changes in update_webpage