fix file upload
added viewfiles, starting to build admin panel.