change the view class to fragment