decouple update mesh on video add from mesh callback and refactor