Refactor WRM controller code that sets users for selectbox