syntac error in view class