its confusing when a method renders a view with different name, also why the render is inside an if?