show loading state when performing ajax requests - start setup for index.js