Added default sorting to pages, and fixed some styles.