added bootsrap 3 and refactorized api read