replaces user view code