functions can now be inputted as actions into routes