add FilePageNext and FilePagePrevious a toggle function

I allowed a file page to toggle.