changed progress bar and fixed endscreen