fixed passing variable error (view.class, front)

There was an error about passing variables etc..