Cleaned up formatting in view.
Change to access api via controller plugin.