+1. You need to check if you are in `edit-mode` or not. Because without this checking, in a list of 1000 sms, we are checking the whole list of inputs everytime we are appending a sms, what it's inefficient.