Refactor WRM controller code that setsusers for selectbox