added controllers for user and device