fixing views and routing