added deleting and uploading files for admin, fixed few things