Adds the functionality of selecting or deselecting entire departments in SMS page.