'Advanced search': toggling active tabs fix