Fix issue with device and StatController routes in main layout
Fix index page