fix per page selector
session var names
fix pagination finally