[IMP]planner:store selection value in json object and clean code.