update layout variables