made the api timeout message appear after a brief delay to not screw up when switching pages and the js is terminated