update file permissions to main files in contextMenu