setting up device viewset