New history view and rewriting of some chunks of code