It was done properly in UI controller, but it seems the API separation happened in the mean time, with the old code used.