fixed pagination bug and now you can resize