@Override
    public void onUsersChanged(Users users) {
        if (users == null) {
            return;
        } else {
            Plan plan = users.getPlan();
            int maxUsers = plan.getConcurrency();
            //configure numberOfUserSlider depending on UserInfo
            numberOfUsersSlider.setMinimum(0);
            numberOfUsersSlider.setMaximum(maxUsers);
            numberOfUsersSlider.setMajorTickSpacing(maxUsers > 0 ? maxUsers / 4 : 1000);
            numberOfUsersSlider.setMinorTickSpacing(maxUsers > 0 ? maxUsers / 12 : 100);
            Dictionary labels = numberOfUsersSlider.createStandardLabels(numberOfUsersSlider.getMajorTickSpacing());
            numberOfUsersSlider.setLabelTable(labels);

            //set locations list
            JSONArray locations = users.getLocations();
            cloudPanel.setLocations(locations);
        }
    }