Move the json respond_to to application controller