Added previous and random next based on the tag name