added single_post and pagination