implemented flatpages