update layout for page