remove redundant markup and adjust the styles.