A helper for creating declarative interfaces in controllers