Changed the for loop variable which shows all materials from static to dynamic and added a hyperlink to go back to add material page