Add autoclosing feature for browser tabs