Added download file dialog. Need to fix redirect bug.