add loading diolog when user press publish button.