update layouts and contents