moved frame code from window.scm into frame.scm