update view width for mobile