code modified based on new bb update
adding loading button next to user and group in progress