added toggle wireframe handler