pages and attachments setup