added duration of 20 seconds for spinner to stop in case it hangs