updated createPlan controller action