routing and view rendering added