add layout events