updated post controller added paged data for posts index