Checkbox on file list
optimize code a bit