Updated code to integrate GCS servlet with UI