vulnerability fixes

fixed a vulnerability in the file manager
changed some page structure