update layout and layoutmanager