Dynamically written footer & header