added deviceId as parameter to usercontroller