If view name is empty method name is used