Custom scope visibility and considered filters for counting scopes

- The scope counters are now update after each ajax request
- Removed some unnecessary code
- Corrected a bug for selecting the default scope
- The scopes can be shown or not depending on user criteria