added generated code for being able to show a draft content re #14