Made the checkbox for attachment functional

Signed-off-by: tiendam <tien.dam@socketlabs.com>