Photo Gallery

Hi, I was going through your Photo Gallery/XML tutorial, I followed it really carefully, but my Previous Button does not work, any ideas?