improve the hint bar, construct the hint bar by code instead of storyboard