Add flatpages support