#38 reimplemented width of blue bar in a more general way