Influence of the magnetic transition on the optical properties of CrBr3