Implemented Bar Preview when create and update bar