update layout width