change rule of layout