delete the old frame if it exists