add a basic scoped controller function