Migrated old captive portal code to new angular app