use view name instead of hard-coded url