half done index page..
ajax controller uses api lib, connect page, some refactoring