added toggle to delete object