lock/unlock scroll when switching view