Added changes from production version, including autonext and CSS fixes.