use the dispose method for the stages in the states