dashboard: added support for file download, bug fix