added a timeout to ensure deletion and time for loading