added safeguard for doublicate entries in layout menu