Merge some repeat functions
Update liveview single mode architecture