moving viewname logic out of viewEngine and into BaseView