move method into model
Merge branch 'master' of github.com:ruba-ruba/Online-File-Manager-3.0