explain in a detailed stepwise arrow pushing mechanism

explain in a detailed stepwise arrow pushing mechanism showing why when cyclopentene is treated with Br2 that trans-1 2-dibromocyclopentane is the major product at low temperatures but at high temperatures a racemic mixture of 3-bromocyclopentene is the major product.