add liveview support
fix bugs