added history and minor tweaks to iframe rendering