fixed pagination bug
updated with misc fixes and changes