adjusted posts page, added proper sorting