Fixing the issue with routing and View refresh.