add diagram page template