change the looking of infobox
fix a bug that infobox is stretched sometimes