implemented pace to display loading while making ajax requests