updated function to unregister wpengine widget