add spinner and reload button
integrate spinner and reload functionality