Add history class and initialization in block