Half way to saving viewport. Fixed off-screen boxes