added dispose to Dom objects