add code to get back to former tab unless greped in last tab