ui work for attachment