restructering liveplot for differnt backends