What is the inner layer of the uterus mainly involved in during menstruation?

That layer is called as endometrium. It sheds away during the menstruation.