update layout according to final