updated formcontroller to use resource for form options