performance improvement: remove function call from view and replace this a call in the controller. table rows are constructed in the controller the needed resources have finished loading