added condition for call delete api in question edit