added datepicker and type when registering a new plan.