added my modifications for a stripped down version of angular-table