Add dispose() to Component