fixed the bug (array should be Array)(the whole night, wtf)
implemented the next() button in the display page