adding check to see if page is draft