added pulling class details from rest api