Adding CSS to and better handling of iframes.
Abstract the frame functionality into a function for reuse.