udpate layout