view resizes to fit window