table padg

added table padgination and worked more on getLocations which still does
not work