[IMP]planner: improve code and make planner_application field to selection.