add codes to plan pages