adding switch to tab input after editing an entry