Style edit mode switcher for 5.0.

/cc @maethu