fix view resizing