Extracted progress gui specific method to gui files.
Removed unused code.
Extracted function to get URI parameter to html.js file.