replaced the entire table logic as the code from Pushkar that was supposed to do this did not work and was not following the MVC paradigm.