added filepath var to delete action