update layout of page