add code for favoritingtextinput from star button next to text input