set user and view context