added check for attachment on frontend