department select all and search