Top and bottom pager added. Sort links coded