middleware and assets. view manager work