Added resize callback function, toggle for wireframe