instagram JSON and some routing refactoring