Fixed facility add
Moved alert count to server-side