Doc: Change the way to create handler