correctly set activity for views in all cases