Update dispose method