user object is passed into ui