update to add disabled class to first and last links if unsuable