keeping user querying in the controller