added view middleware

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>
view

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>