Minor tidy up (new live preview code) - have removed some dead code