working on planner functions in angular