adjust styles before scripting