Previous/Next buttons added with functionality