Update markup and rules