Update planning_elements_controller.rb