More work on frame stability and elimination of resizing bug