Finished most of the client side code for the materials eit page