update layout and stuff