fixed viewer resizing