Loading spinner finally working properly :)