update layout and refector