init HUI preview