updated api and added views