Finish the basic function of Hex panel