changed colour of bar and added transition