add FilePageNext and FilePagePrevious a toggle function