Added demonstration of layout callback