directive to show loading spinner