added basic full-browser resizing functionality. This has not been debugged and may be unstable.