views and unify select function