Update document style / settings each time a new file is loaded