selection function moved

The localview is not causing crash now.

Change-Id: Iea2fe607555d2d3c955f8f198240a2b2d1e26788