Added Progress Bar and refactored error code into updateDisplayForError