added log delete functionality