Previous button now linking correctly