added tab controls, fixed bug with add buttons, and added proper maximum pages display