extended array to create a lastIndex getter and applied link children to menu