update layout and status