enable/disable anchor
- fixed format style
- removed unused HandlerRegistration