added destroy functionality through ajax