modified view_where function for abstracys model
modified view_where function absractc controller because of change in schema