Added the dispose methodes.