add layout hook