remember the previously selected tag