update the style of the ap