removed edit from paginate() because edit=new does evil things.