refactoring restoreScreenMode from readerview to filemanager

This should fix #983.