updated routing/controller definition to be in views