updated api and use metro css