chnaged logic for "deleting selected" and "chnaging name inline"