Working paginator. Need to make each tab operate as a seperate form and work on creating complex sql queries