add contents property for code view