fixing view invocation