using ngTable
using smart table
minor modification