added destroy functionality and State

added destroy functionality and State