adding layoutkey to boxes