ui validatio and file download fix