add flag on layout