only display edit page if draft mode