Any reason why this is just rending json instead of loading a view?