Integrating loading indicator to prevent multiple clicks on buttons