Set tag before showing view.