Refactored table render

Adjusted table render to take place outside of buldTableOfBanks function (which now returns the completed table).