changes to make delete wid work