fixed bugs, added matches pagination