Integrating the style changes with history is not working good. Need to thinkg about it further