Adding pagination and making table size consistent